<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
            //集合
        const people = new Set();
        people.add('Wes');
        people.add('杨值信');
        people.add('吴亦凡');
        people.add('杨值信');
        console.log(people);
        for (let person of people){
            console.log(person);
        }
        const students = new Set(["刘钰","欧阳","张"])
        console.log(students);
        
        const dogs = new Map()
        dogs.set("snickers",3)
        dogs.set("sun",3)
        dogs.set("bb",3)
        console.log(dogs);
        //es6 解构
        for (let [key,val] of dogs){
            console.log(key,val);
        }
    </script>
</body>
</html>